package com.xs.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * (Collection)实体类
 *
 * @author makejava
 * @since 2022-10-09 16:50:23
 */
@Data
public class Collection implements Serializable {
    private static final long serialVersionUID = 569172486050749659L;
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 收藏者id
     */
    private Integer uid;
    /**
     * 被收藏文章ID
     */
    private Integer articleId;
    /**
     * 被收藏文章的作者id
     */
    private Integer authorid;

    /**
     * 收藏时间
     */
    private Date time;

}

